<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script>
      function test(){
        console.log('function test() ');
        let a = 2;
        return function(){
          console.log('return function() ');
          console.log('return function() a',a);
        }
      }

    let da =  test()
    console.log(da())
    </script>
  </body>
</html>
